package com.tale.model.dto;

import com.tale.model.entity.Comments;



import java.util.List;

/**
 * Created by smallcc on 2017/2/24.
 */
public class Comment extends Comments {


	public int getLevels() {
		return levels;
	}

	public void setLevels(int levels) {
		this.levels = levels;
	}

	public List<Comments> getChildren() {
		return children;
	}

	public void setChildren(List<Comments> children) {
		this.children = children;
	}

	private int levels;
    private List<Comments> children;

    public Comment(Comments comments) {
        setAuthor(comments.getAuthor());
        setMail(comments.getMail());
        setCoid(comments.getCoid());
        setAuthor_id(comments.getAuthor_id());
        setUrl(comments.getUrl());
        setCreated(comments.getCreated());
        setAgent(comments.getAgent());
        setIp(comments.getIp());
        setContent(comments.getContent());
        setOwner_id(comments.getOwner_id());
        setCid(comments.getCid());
    }

    @Override
    public String toString() {
        return "Comment{" +
                "levels=" + levels +
                ", children=" + children +
                '}';
    }
}
